public class Test {
    private String name;
    private String toClass;
    static public int age;
    static public int score;

    public String Score() {
        if (score < 90) {
            return "继续加油";
        } else {
            return "优秀";
        }

    }


    public Test(String name,String toClass){
        this.name = name;
        this.toClass = toClass;
    }
    static {
        age = 18;
        score = 90;
    }

    @Override
    public String toString() {
        return "Test{" +
                "name='" + name + '\'' +
                ", toClass='" + toClass + '\'' +
                '}';
    }

    public static void main(String[] args) {
        Test stu = new Test("李四","242108");
        String result = stu.Score();
        System.out.println(result);
        System.out.println(stu);
        System.out.println(Test.age);
        System.out.println(Test.score);
   }
}



